package org.game.obj.unit;

import java.util.Random;

import org.game.obj.GWObject;

public class GWUnit extends GWObject {
	
	private boolean busy;
	
	protected int minDmg;
	protected int maxDmg;
	
	public GWUnit() {
		super(0, 0, 1, 1, 0);
		minDmg = 0;
		maxDmg = 0;
	}
	
	public GWUnit(GWUnit u) {
		super(u.getX(), u.getY(), u.getWidth(), u.getHeight(), u.getNumber());
		minDmg = u.minDmg;
		maxDmg = u.maxDmg;
	}
	
	public GWUnit(int x, int y) {
		super(x, y, 1, 1, 0);
	}

	public boolean isBusy() {
		return busy;
	}

	public void setBusy(boolean busy) {
		this.busy = busy;
	}
	
	public int getFoodCost() {
		return 0;
	}
	
	public int getWoodCost() {
		return 0;
	}
	
	public int getSteelCost() {
		return 0;
	}
	
	public int getDamage() {
		return new Random().nextInt(maxDmg-minDmg) + minDmg;
	}
}
